import i18n from "@/locale/index";
import Layout from "@/layout/index";

export default {
    //报表管理
    path: '/report',
    redirect: '/report/financeReport',
    meta: {
        path: 'report'
    },
    component: Layout,
    children: [
        {
            //财务报表
            path: 'financeReport',
            meta: {
                path: 'report/financeReport'
            },
            name: 'reportFinance',
            redirect: '/report/financeReport/profit',
            component: () => import('@/views/report/financeReport/index'),
            children: [
                {
                    //财务利润表
                    path: 'profit',
                    name: 'financeProfit',
                    meta: {
                        path: 'report/financeReport/profit'
                    },
                    component: () => import('@/views/report/financeReport/profit/index'),
                },
                {
                    //金额还款报表
                    path: 'amountRepayment',
                    name: 'financeAmountRepayment',
                    meta: {
                        path: 'report/financeReport/amountRepayment'
                    },
                    component: () => import('@/views/report/financeReport/amountRepayment/index'),
                },
                {
                    //订单还款报表
                    path: 'repayment',
                    name: 'financeOrderRepayment',
                    meta: {
                        path: 'report/financeReport/repayment'
                    },
                    component: () => import('@/views/report/financeReport/repayment/index'),
                },
            ],
        },
        {
            //贷后报表
            path: 'afterLoanReport',
            name: 'afterLoanReport',
            meta: {
                path: 'report/afterLoanReport'
            },
            redirect: '/report/afterLoanReport/customers',
            component: () => import('@/views/report/afterLoanReport/index'),
            children: [
                {
                    //客群报表
                    path: 'customers',
                    name: 'loanReportCustomers',
                    meta: {
                        path: 'report/afterLoanReport/customers'
                    },
                    component: () => import('@/views/report/afterLoanReport/customers/index'),
                },
                {
                    //催收报表
                    path: 'collection',
                    name: 'loanReportCollection',
                    meta: {
                        path: 'report/afterLoanReport/collection'
                    },
                    component: () => import('@/views/report/afterLoanReport/collection/index'),
                },
                {
                    //催收人效表
                    path: 'effect',
                    name: 'loanReportCollectionEffect',
                    meta: {
                        path: 'report/afterLoanReport/effect'
                    },
                    component: () => import('@/views/report/afterLoanReport/effect/index'),
                },
                {
                    //贷后分单实时板块
                    path: 'realTime',
                    name: 'loanReportCollectionRealTime',
                    meta: {
                        path: 'report/afterLoanReport/realTime'
                    },
                    component: () => import('@/views/report/afterLoanReport/realTime/index'),
                },
                {
                    //贷后分单周报业绩
                    path: 'weekly',
                    name: 'loanReportCollectionWeekly',
                    meta: {
                        path: 'report/afterLoanReport/weekly'
                    },
                    component: () => import('@/views/report/afterLoanReport/weekly/index'),
                },
                {
                    //贷后分时段还款报表
                    path: 'timeShare',
                    name: 'loanReportCollectionTimeShare',
                    meta: {
                        path: 'report/afterLoanReport/timeShare'
                    },
                    component: () => import('@/views/report/afterLoanReport/timeShare/index'),
                },
                {
                    // 催收实操报表
                    path: 'record',
                    name: 'loanReportCollectionRecord',
                    meta: {
                        path: 'report/afterLoanReport/record'
                    },
                    component: () => import('@/views/report/afterLoanReport/record/index'),
                },
                {
                    // 催收分时段通话报表
                    path: 'callTimeShare',
                    name: 'loanReportCollectionCallTimeShare',
                    meta: {
                        path: 'report/afterLoanReport/callTimeShare'
                    },
                    component: () => import('@/views/report/afterLoanReport/callTimeShare/index'),
                },
            ],
        },
        {
            //提醒报表
            path: 'reminderReport',
            name: 'reminderReport',
            meta: {
                path: 'report/reminderReport'
            },
            redirect: '/report/reminderReport/customers',
            component: () => import('@/views/report/reminderReport/index'),
            children: [
                {
                    //到期提醒客群报表
                    path: 'customers',
                    name: 'reminderReportCustomers',
                    meta: {
                        path: 'report/reminderReport/customers'
                    },
                    component: () => import('@/views/report/reminderReport/customers/index'),
                },
                {
                    //到期提醒报表
                    path: 'reminder',
                    name: 'reminderReport',
                    meta: {
                        path: 'report/reminderReport/reminder'
                    },
                    component: () => import('@/views/report/reminderReport/reminder/index'),
                },
                {
                    //提醒人效表
                    path: 'effect',
                    name: 'reminderReportEffect',
                    meta: {
                        path: 'report/reminderReport/effect'
                    },
                    component: () => import('@/views/report/reminderReport/effect/index'),
                },
                {
                    //提醒分单实时板块
                    path: 'realTime',
                    name: 'reminderReportRealTime',
                    meta: {
                        path: 'report/reminderReport/realTime'
                    },
                    component: () => import('@/views/report/reminderReport/realTime/index'),
                },
                {
                    //提醒分单周报业绩
                    path: 'weekly',
                    name: 'reminderReportWeekly',
                    meta: {
                        path: 'report/reminderReport/weekly'
                    },
                    component: () => import('@/views/report/reminderReport/weekly/index'),
                },
                {
                    //提醒分时段还款报表
                    path: 'timeShare',
                    name: 'reminderReportTimeShare',
                    meta: {
                        path: 'report/reminderReport/timeShare'
                    },
                    component: () => import('@/views/report/reminderReport/timeShare/index'),
                },
                {
                    // 提醒实操报表
                    path: 'record',
                    name: 'loanReportRemindRecord',
                    meta: {
                        path: 'report/reminderReport/record'
                    },
                    component: () => import('@/views/report/reminderReport/record/index'),
                },
                {
                    // 提醒分时段通话报表
                    path: 'callTimeShare',
                    name: 'loanReportRemindCallTimeShare',
                    meta: {
                        path: 'report/reminderReport/callTimeShare'
                    },
                    component: () => import('@/views/report/reminderReport/callTimeShare/index'),
                },
            ],
        },
        {
            //运营报表
            path: 'operateReport',
            name: 'operateReport',
            meta: {
                path: 'report/operateReport'
            },
            component: () => import('@/views/report/operateReport/index'),
            children: [
                {
                    //用户转化表
                    path: 'userChange',
                    name: 'userChange',
                    meta: {
                        path: 'report/operateReport/userChange'
                    },
                    component: () => import('@/views/report/operateReport/userChange/index'),
                },
                {
                    //运营数据表
                    path: 'operationData',
                    name: 'operationData',
                    meta: {
                        path: 'report/operateReport/operationData'
                    },
                    component: () => import('@/views/report/operateReport/operationData/index'),
                },
                {
                    //认证转化报表
                    path: 'authentication',
                    name: 'authentication',
                    meta: {
                        path: 'report/operateReport/authentication'
                    },
                    component: () => import('@/views/report/operateReport/authentication/index'),
                },
                {
                    //分时段注册报表
                    path: 'timeShareRegister',
                    name: 'timeShareRegister',
                    meta: {
                        path: 'report/operateReport/timeShareRegister'
                    },
                    component: () => import('@/views/report/operateReport/timeShareRegister/index'),
                },
            ],
        },
        {
            //审核报表
            path: 'examineReport',
            name: 'examineReport',
            meta: {
                path: 'report/examineReport'
            },
            component: () => import('@/views/report/examineReport/index'),
            children: [
                {
                    // 审核人报表
                    path: 'reviewer',
                    name: 'Reviewer',
                    meta: {
                        path: 'report/examineReport/reviewer'
                    },
                    component: () => import('@/views/report/examineReport/reviewer/index'),
                },
                {
                    //订单审核报表
                    path: 'orderReview',
                    name: 'OrderReview',
                    meta: {
                        path: 'report/examineReport/orderReview'
                    },
                    component: () => import('@/views/report/examineReport/orderReview/index'),
                }
            ]
        },
        {
            //订单拒绝报表
            path: 'orderRefuseReport',
            name: 'orderRefuseReport',
            meta: {
                path: 'report/orderRefuseReport'
            },
            component: () => import('@/views/report/orderRefuseReport/index'),
            children: [
                {
                    //机审拒绝报表
                    path: 'machineRefuse',
                    name: 'MachineRefuse',
                    meta: {
                        path: 'report/orderRefuseReport/machineRefuse'
                    },
                    component: () => import('@/views/report/orderRefuseReport/machineRefuse/index'),
                },
                {
                    // 人审拒绝报表
                    path: 'peopleRefuse',
                    name: 'PeopleRefuse',
                    meta: {
                        path: 'report/orderRefuseReport/peopleRefuse'
                    },
                    component: () => import('@/views/report/orderRefuseReport/peopleRefuse/index'),
                },
            ]
        },
        {
            //营销报表
            path: 'marketingReport',
            name: 'marketingReport',
            meta: {
                path: 'report/marketingReport'
            },
            component: () => import('@/views/report/marketingReport/index'),
            children: [
                {
                    //分时段申请报表
                    path: 'timeShare',
                    name: 'marketingReportTimeShare',
                    meta: {
                        path: 'report/marketingReport/timeShare'
                    },
                    component: () => import('@/views/report/marketingReport/timeShare/index'),
                },
                {
                    //分时段通话报表
                    path: 'callPhone',
                    name: 'marketingReportCallPhone',
                    meta: {
                        path: 'report/marketingReport/callPhone'
                    },
                    component: () => import('@/views/report/marketingReport/callPhone/index'),
                },
            ]
        },
    ]
}
